// pages/detail/detail.ts
Page({
  data: {
    movie:[],
  },

  onLoad(options) {
    wx.request({
      url:`http://47.108.197.28:4000/api/movieDetail?id=${options.id}`,
      header:{"content-type":"application/json"},
      method:"GET",
      responseType:"text",
      success:(res:Object)=>{
        this.setData({movie:res.data.res[0]})
      }  
    })
  },
})